package top.jiangqiang.qyblog.core.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import top.jiangqiang.qyblog.common.constant.RoleConstants;
import top.jiangqiang.qyblog.core.base.entity.BaseEntityVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 用户完整数据信息
 *
 * @author jiangqiang
 * @date 2022-07-24
 */
@Data
@Accessors(chain = true)
@Schema(name = "用户完整数据信息结构", description = "")
public class AdminUserVo extends BaseEntityVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "用户性别")
    private Integer gender;

    @Schema(description = "用户手机号")
    private String mobile;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "用户真实名字")
    private String realName;

    @Schema(description = "用户简介")
    private String resume;

    @Schema(description = "用户账户")
    private String username;

    @Schema(description = "角色列表，admin是管理员")
    private List<String> roles = List.of(RoleConstants.ADMIN_ROLE);

    //'btn.add', 'btn.del', 'btn.edit', 'btn.link'
    @Schema(description = "权限列表，小数点左边表示操作的对象，右边表示具体操作，主要有add，delete，update，get")
    private List<String> permissions = List.of("*.*");
}
